#include "zf_common_headfile.h"
#include "ScnsInclude.h"
#include "init.h"
#include "test.h"

int main(void)
{
    init();
    test();
    while(1)
    {
        scnsMenuFresh();
        scnsIwdgFeed();
        scnsVl53l0xReInit(SCNS_VL53L0X_FRONT);
        scnsVl53l0xReInit(SCNS_VL53L0X_BACK);
        ScnsImage image;
        while(scnsMt9v034GetImage(SCNS_MT9V034_1,&image)==SCNS_STATUS_OK)
        {
            if(scnsMenuCanPageDisplay(2))
                scnsLcdDisplayImage(SCNS_LCD_LAYER_AUTO,(Point){0,320-120*1},&image,image.width,image.height,0);
            scnsMt9v034SetFinish(SCNS_MT9V034_1,&image);
        }
    }
}






